<template>
  <div class="padding">
    <el-menu
      mode="horizontal"
      text-color="#000000"
      active-text-color="skyblue"
      router
    >
      <img src="@/assets/logo.jpg" class="logo" />

      <el-menu-item index="/dashboard">首页</el-menu-item>
      <el-menu-item index="/realtor">房产经纪</el-menu-item>
      <el-menu-item index="/sort">地产分类</el-menu-item>
      <el-menu-item index="/about">关于我们</el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.padding {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 60px;
  .el-menu {
    position: fixed;
    justify-content:center ;
    display: flex;
    top: 0;
    width:100%;
    z-index: 9999;
    box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
    .logo {
      margin-right: 20px;
      height: 30px;
      margin-top: 15px;
    }
  }
}
</style>
